package com.woniuxy.moneyapp.service;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.woniuxy.moneyapp.infra.dto.CoachToParam;
import com.woniuxy.moneyapp.infra.dto.VenueDetails;
import com.woniuxy.moneyapp.infra.dto.VenueLocation;

import java.util.List;


/**
 * <p>
 *  服务类
 * </p>
 *
 * @author seven
 * @since 2022-08-01
 */
public interface PeopleNearbyService {
    //增
    //储存场馆地理位置到redis
    boolean saveVenueLocation(VenueLocation venue);

    //储存场馆信息到redis
    boolean saveVenueInfo(VenueDetails vds) throws JsonProcessingException;

    //储存教练信息
    boolean saveCoachInfo(CoachToParam ctp) throws JsonProcessingException;


    List<VenueLocation> findVenueByCondition(double distance, double userLng, double userLat);

    void deleteCoashInfo(Integer cid);

    void deleteVenueInfo(Integer vid);
}
